<?php
// $Id: gen_mylinks_link.php 229 2008-03-03 13:27:42Z mikhail.miguel $

//================================================================
// WebLinks Module
// 2007-03-07 K.OHWADA
//================================================================

include_once 'dev_header.php';
include_once 'gen_mylinks_class.php';

$genarete =& new weblinks_gen_mylinks();

dev_header();

$CID      = 1;
$MAX_LINK = 1000;

echo "<h3>generete mylinks link in one category</h3>\n";

for ($i=1; $i<=$MAX_LINK; $i++)
{
// link table
	$link_title = $genarete->get_randum_title();
	$lid = $genarete->insert_mylinks_link( $CID, $link_title );

// text table
	$genarete->insert_mylinks_text( $lid, $link_title );

}

echo "<h3>end</h3>\n";
echo "$MAX_LINK links in category $CID <br>\n";

dev_footer();
// =====

?>